<?php


namespace Part24_IntermediaryModel\Code3;


class GeneralManger extends Manager
{

    function requestApplications($request)
    {
        // 总经理处理所有情况
        if ($request->getType() == '请假') {
            echo "{$this->name}：已批准{$request->getType()}{$request->getNum()}\n";
        }elseif ($request->getType() == '加薪' && $request->getNum() <= 500){
            echo "{$this->name}：已通过{$request->getType()}{$request->getNum()}块申请\n";
        }elseif ($request->getType() == '加薪' && $request->getNum() > 500){
            echo "{$this->name}：{$request->getType()}{$request->getNum()}块？？？ 以后再说吧\n";
        }
    }
}